package com.wargameproject;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class QuitterLeJeu extends Activity implements OnClickListener{
 
	Button qlj2;
	Button qlj3;
    
    public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.quitter_le_jeu);
        
        qlj2 = (Button)findViewById(R.id.quitterlejeu2);
        qlj2.setOnClickListener(this);
        qlj3 = (Button)findViewById(R.id.quitterlejeu3);
        qlj3.setOnClickListener(this); 
           
 }
    
    public void onClick(View v) {

		switch (v.getId()) {
		/*case R.id.quitterlejeu2:
			Intent intent1 = new Intent(QuitterLeJeu.this,
					MainActivity.class);
			startActivity(intent1);
			break;*/
		case R.id.quitterlejeu3:
			Intent intent2 = new Intent(QuitterLeJeu.this,
					MainActivity.class);
			startActivity(intent2);
			break;
			
		default:
			break;
		}
		
    }
	
}
